// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import "mint-ui/lib/style.css";
import { Swipe, SwipeItem } from 'mint-ui';
import Carousel3d from 'vue-carousel-3d';
import Lazyload from 'vue-lazyload';
import { Formatter } from '@lib/common/utils';
import avatar from '@/comp/avatar';

Vue.config.productionTip = false;

Vue.use(Lazyload);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.use(Carousel3d);

Vue.prototype._fmt = Formatter;

Vue.component("Avatar", avatar);
Vue.component('icon-profile-verified', require('./comp/icons/is-profile-verified.vue').default);
Vue.component('icon-company-verified', require('./comp/icons/is-company-verified.vue').default);
Vue.component('pic-view', require("./comp/pic-view/index.vue").default);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
});
